import http from '../../service/http'
// 获取私聊消息
export async function getPrivateLetter(userId, targetUserId) {
  return http.get(`/user/${userId}/getPrivateLetter/${targetUserId}`)
}

// 发送私聊消息
export async function sendPrivateLetter(userId, targetUserId, content) {
  return http.post(`/user/${userId}/privateLetter/${targetUserId}`, { content })
}